package com.usefullc.user.vo.permission;

import com.usefullc.common.domain.BaseDomain;
import com.usefullc.system.service.component.extend.UsefulField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author: Sampson
 * @date: 2020-12-21 11:16
 */
@Data
@ApiModel
public class MenuVo extends BaseDomain {

    private String redirect;

    private Long id;

    private Long parentId;

    private String name;

    private String path;

    private String component;

    private Boolean route;

    private Integer orderNo;

    private List<MenuVo> children;

    private MenuMetaVo meta;

    private String icon;

    private String description;

    @ApiModelProperty(notes = "编码")
    private String code;

    @UsefulField(convertType = Integer.class)
//    @JsonFormat(shape = JsonFormat.Shape.NUMBER)
    private Boolean menu;


    @ApiModelProperty(notes = "应用类型")
    private String appType;

}
